<div class="form-row" id="approve-row">
  <label class="required" for="ringtone_approved">Trạng thái duyệt</label>
  <div class="content">
        <?php
        	$approve_status = $ringtone->getOrInitRingtoneStatus()->getRbtApprove();
            $enabled_list = array(null => 'Chưa upload', 0 => 'Chờ duyệt', 1 => 'Đã duyệt', 2 => 'Từ chối');
            echo select_tag('ringtone[approved]', options_for_select($enabled_list, $approve_status), array('class' => 'full', 'id' => 'approve-status-select', 'onchange' => "showOrHideReasonRow(this, 'reject_info', 2);"));
        ?>
  </div>
</div>

<div id="reject_info" style="display: block">
	<!--  
	<div class="form-row">
	  <label class="required" for="approve_reason">Lý do từ chối</label>	  
	  <div class="content">
	  	<select name='approve_reason' id='approve_reason' onchange="selectReason(this, 'approve_description')">
			<option value="">Lý do từ chối</option>
        	<?php 
			//foreach($list_reasons as $item): ?>
			<option value="<?php //echo $item->getTitle() ?>"><?php //echo $item->getTitle() ?></option>
			<?php //endforeach; ?>
		</select>
		
		  
		<input type ="checkbox" name = "ringtone[rtStatus]" checked="checked" value ="1" style = "width:20px" />Nhạc chuông
		<input type ="checkbox" name ="ringtone[crbtStatus]" value ="1" style = "width:20px" <?php //if ($ringtone->getRingtoneExtra()->getRbtId()==null) echo "disabled=\"disabled\""; else echo "checked=\"checked\""; ?> />CRBT
		
	  </div>
	</div>
	-->
	<div class="form-row">
	  <label class="required" for="ringtone[approve_description]">Lý do từ chối</label>
	  <div class="content">
            <?php 
	            if (!isset($approve_description) || empty($approve_description)):
	                $approve_description = '...nhập thông tin mô tả ở đây';
	            endif;
	        ?>
			<textarea readonly="readonly" cols="38" rows="3" id="approve_description" name="ringtone[approve_description]"><?php echo $approve_description ?></textarea>
	  </div>
	</div>
</div>
